home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Include / fd / hdwrench_lib.fd < prev    next >
Encoding:
Text File  |  1999-10-20  |  1.3 KB  |  39 lines

  1. ##base _HDWBase
  2. ##bias 30
  3. ##public
  4. * Open and close a device for use with other library functions
  5. HDWOpenDevice(devName,unit)(a0,d0)
  6. HDWCloseDevice()()
  7. * Disk access functions
  8. RawRead(bbk,size)(a0,d0)
  9. RawWrite(bb)(a0)
  10. WriteBlock(bb)(a0)
  11. * Disk RDB access functions
  12. ReadRDBs()()
  13. WriteRDBs()()
  14. * Simple query functions.
  15. QueryReady(errorcode)(a0)
  16. QueryInquiry(inqbuf,errorcode)(a0/a1)
  17. QueryModeSense(page,msbsize,msbuf,errorcode)(d0/d1/a0/a1)
  18. QueryFindValid(validIDs,devicename,board,types,wide_scsi,callBack)(a0/a1,d0/d1/d2/a2)
  19. QueryCapacity(totalblocks,blocksize)(a0/a1)
  20. * File and memory IO for RDB information in the two formats recognized
  21. ReadMountfile(unit,filename,controller)(d0/a0/a1)
  22. ReadRDBStructs(filename,unit)(a0,d0)
  23. WriteMountfile(filename,ldir,unit)(a0/a1,d0)
  24. WriteRDBStructs(filename)(a0)
  25. InMemMountfile(unit,mfdata,controller)(d0/a0/a1)
  26. InMemRDBStructs(rdbp,sizerdb,unit)(a0,d0/d1)
  27. OutMemMountfile(mfp,sizew,sizeb,unit)(a0/a1,d0/d1)
  28. OutMemRDBStructs(rdbp,sizew,sizeb)(a0/a1,d0)
  29. * Complex query functions.
  30. FindDiskName(diskname)(a0)
  31. FindControllerID(devname,selfid)(a0/a1)
  32. FindLastSector()()
  33. FindDefaults(optimize,result)(d0/a0)
  34. * The following two functions benefit from an active callback hook.
  35. * Please see the HDW_CallBackMsgs.h file for suggested messages.
  36. LowlevelFormat(callBack)(a0)
  37. VerifyDrive(callBack)(a0)
  38. ##end
  39.